home *** CD-ROM | disk | FTP | other *** search
/ Team Palmtops 7 / Palmtops_numero07.iso / WinCE / SDKWindowsCE / HandHeldPCPro30 / sdk.exe / Jupiter SDK / data1.cab / MFC_Samples / chatsrvr / lstnsock.h < prev    next >
Encoding:
C/C++ Source or Header  |  1999-02-19  |  1.4 KB  |  55 lines

  1. // lstnsock.h : interface of the CListeningSocket class
  2. //
  3. // This is a part of the Microsoft Foundation Classes C++ library.
  4. // Copyright (C) 1999 Microsoft Corporation
  5. // All rights reserved.
  6. //
  7. // This source code is only intended as a supplement to the
  8. // Microsoft Foundation Classes Reference and related
  9. // electronic documentation provided with the library.
  10. // See these sources for detailed information regarding the
  11. // Microsoft Foundation Classes product.
  12.  
  13. #ifndef __LSTNSOCK_H__
  14. #define __LSTNSOCK_H__
  15.  
  16. class CServerDoc;
  17.  
  18. #if defined(_WIN32_WCE)
  19. class CListeningSocket : public CCeSocket
  20. #else // _WIN32_WCE
  21. class CListeningSocket : public CSocket
  22. #endif // _WIN32_WCE
  23. {
  24.     DECLARE_DYNAMIC(CListeningSocket);
  25. private:
  26.     CListeningSocket(const CListeningSocket& rSrc);         // no implementation
  27.     void operator=(const CListeningSocket& rSrc);  // no implementation
  28.  
  29. // Construction
  30. public:
  31. #if defined(_WIN32_WCE)
  32.     CListeningSocket( CServerDoc* pDoc, PURPOSE_E iPurpose=FOR_LISTENING );
  33. #else // _WIN32_WCE
  34.     CListeningSocket(CServerDoc* pDoc);
  35. #endif // _WIN32_WCE
  36.  
  37. // Attributes
  38. public:
  39.     CServerDoc* m_pDoc;
  40.  
  41. // Overridable callbacks
  42. protected:
  43.     virtual void OnAccept(int nErrorCode);
  44.  
  45. // Implementation
  46. public:
  47.     virtual ~CListeningSocket();
  48.  
  49. #ifdef _DEBUG
  50.     virtual void AssertValid() const;
  51.     virtual void Dump(CDumpContext& dc) const;
  52. #endif
  53. };
  54. #endif // __LSTNSOCK_H__
  55.